/**
 * AdEntity.java 上午10:32:09 2012-5-2
 * Cyber Information Technology Co.,Ltd.
 *   
 *   http://www.citchina.cn
 *   citchina.org@gmail.com
 */
package cn.cit.wcif.ad.persistence.jpa.entity;

import java.sql.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

import cn.cit.wcif.ad.api.persistence.IAdEntity;

/**
 * @author Jonathan
 * @version 1.0
 * 
 */
@Entity
@Table(name = "AD")
@NamedQueries({ @NamedQuery(name = "AD.findAll", query = "select a from AdEntity a") })
public class AdEntity implements IAdEntity {
	@Id
	@GeneratedValue
	private String id;
	private String adType;
	private String adURL;
	private String backReason;
	private String content;
	private String contentKey;
	private String contentName;
	private String contentState;
	private String lang;
	private String chID;
	private Date publishDate;
	private String publishUserID;
	private String recommend;
	private String updateUserID;
	private Date updateTime;

	/*
	 * (non-Javadoc)
	 * 
	 * @see cn.cit.wcif.ad.api.persistence.IAdEntity#getId()
	 */
	@Override
	public String getId() {
		return this.id;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see cn.cit.wcif.ad.api.persistence.IAdEntity#getAdType()
	 */
	@Override
	public String getAdType() {
		return this.adType;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see cn.cit.wcif.ad.api.persistence.IAdEntity#getAdURL()
	 */
	@Override
	public String getAdURL() {
		return this.adURL;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see cn.cit.wcif.ad.api.persistence.IAdEntity#getContentName()
	 */
	@Override
	public String getContentName() {
		return this.contentName;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see cn.cit.wcif.ad.api.persistence.IAdEntity#getPublishUserID()
	 */
	@Override
	public String getPublishUserID() {
		return this.publishUserID;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see cn.cit.wcif.ad.api.persistence.IAdEntity#getPublishDate()
	 */
	@Override
	public Date getPublishDate() {
		return this.publishDate;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see cn.cit.wcif.ad.api.persistence.IAdEntity#getChID()
	 */
	@Override
	public String getChID() {
		return this.chID;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see cn.cit.wcif.ad.api.persistence.IAdEntity#getRecommend()
	 */
	@Override
	public String getRecommend() {
		return this.recommend;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see cn.cit.wcif.ad.api.persistence.IAdEntity#getUpdateTime()
	 */
	@Override
	public Date getUpdateTime() {
		return this.updateTime;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see cn.cit.wcif.ad.api.persistence.IAdEntity#getUpdateUserID()
	 */
	@Override
	public String getUpdateUserID() {
		return this.updateUserID;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see cn.cit.wcif.ad.api.persistence.IAdEntity#getContentState()
	 */
	@Override
	public String getContentState() {
		return this.contentState;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see cn.cit.wcif.ad.api.persistence.IAdEntity#getContentKey()
	 */
	@Override
	public String getContentKey() {
		return this.contentKey;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see cn.cit.wcif.ad.api.persistence.IAdEntity#getBackReason()
	 */
	@Override
	public String getBackReason() {
		return this.backReason;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see cn.cit.wcif.ad.api.persistence.IAdEntity#getContent()
	 */
	@Override
	public String getContent() {
		return this.content;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see cn.cit.wcif.ad.api.persistence.IAdEntity#getLang()
	 */
	@Override
	public String getLang() {
		return this.lang;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see cn.cit.wcif.ad.api.persistence.IAdEntity#setId(String)
	 */
	@Override
	public void setId(String id) {
		this.id = id;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see cn.cit.wcif.ad.api.persistence.IAdEntity#setAdType(java.lang.String)
	 */
	@Override
	public void setAdType(String type) {
		this.adType = type;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see cn.cit.wcif.ad.api.persistence.IAdEntity#setAdURL(java.lang.String)
	 */
	@Override
	public void setAdURL(String url) {
		this.adURL = url;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * cn.cit.wcif.ad.api.persistence.IAdEntity#setContentName(java.lang.String)
	 */
	@Override
	public void setContentName(String contentName) {
		this.contentName = contentName;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see cn.cit.wcif.ad.api.persistence.IAdEntity#setPublishUserID(String)
	 */
	@Override
	public void setPublishUserID(String userID) {
		this.publishUserID = userID;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * cn.cit.wcif.ad.api.persistence.IAdEntity#setPublishDate(java.sql.Date)
	 */
	@Override
	public void setPublishDate(Date publishDate) {
		this.publishDate = publishDate;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see cn.cit.wcif.ad.api.persistence.IAdEntity#setChID(String)
	 */
	@Override
	public void setChID(String chID) {
		this.chID = chID;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * cn.cit.wcif.ad.api.persistence.IAdEntity#setRecommend(java.lang.String)
	 */
	@Override
	public void setRecommend(String recommend) {
		this.recommend = recommend;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * cn.cit.wcif.ad.api.persistence.IAdEntity#setUpdateTime(java.sql.Date)
	 */
	@Override
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see cn.cit.wcif.ad.api.persistence.IAdEntity#setUpdateUserID(String)
	 */
	@Override
	public void setUpdateUserID(String userID) {
		this.updateUserID = userID;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * cn.cit.wcif.ad.api.persistence.IAdEntity#setContentState(java.lang.String
	 * )
	 */
	@Override
	public void setContentState(String contentState) {
		this.contentState = contentState;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * cn.cit.wcif.ad.api.persistence.IAdEntity#setContentKey(java.lang.String)
	 */
	@Override
	public void setContentKey(String contentKey) {
		this.contentKey = contentKey;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * cn.cit.wcif.ad.api.persistence.IAdEntity#setBackReason(java.lang.String)
	 */
	@Override
	public void setBackReason(String reason) {
		this.backReason = reason;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * cn.cit.wcif.ad.api.persistence.IAdEntity#setContent(java.lang.String)
	 */
	@Override
	public void setContent(String content) {
		this.content = content;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see cn.cit.wcif.ad.api.persistence.IAdEntity#setLang(java.lang.String)
	 */
	@Override
	public void setLang(String lang) {
		this.lang = lang;
	}

}
